libxl: Provide libxl_domain_rename
authorKeir Fraser <keir.fraser@citrix.com>
Mon, 12 Apr 2010 16:40:34 +0000 (17:40 +0100)
committerKeir Fraser <keir.fraser@citrix.com>
Mon, 12 Apr 2010 16:40:34 +0000 (17:40 +0100)
commit567326149cc6d9ba51e881604f3434f61a114f9d
tree3effa57e1e0b5be77b3a8b4b0397de07f96aa926
parente82f13b13d6b20ec2053a49d3cb02b13fa12e6ff
libxl: Provide libxl_domain_rename

Provide a new function libxl_domain_rename.  It can check that the
domain being renamed has the expected name, to avoid races.

Use the new function to set the name during domain creation.

Signed-off-by: Ian Jackson <Ian.Jackson@eu.citrix.com>
tools/libxl/libxl.c
tools/libxl/libxl.h